package com.ruoyi.statisticalCenter.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum ScAssetsAndLiabilitiesEnum
{
    assetsAccount("assetsAccount", "统计日期"),
    assetsSubaccount("assetsSubaccount", "网点名称"),
    openingBalance("openingBalance", "所属网点名称"),
    debtor("debtor", "揽收总量"),
    creditor("creditor", "揽收上传不及时量"),
    endingBalance("endingBalance", "揽收上传不及时率"),
    liabilitiesAndEquityAccounts("liabilitiesAndEquityAccounts", "派件总量"),
    liabilitiesAndEquitySubaccounts("liabilitiesAndEquitySubaccounts", "派件上传不及时量"),
    liOpeningBalance("liOpeningBalance", "派件上传不及时率"),
    liDebtor("liDebtor", "签收总量"),
    liCreditor("liCreditor", "签收上传不及时量"),
    liEndingBalance("liEndingBalance", "上传不及时总率");

    private final String code;
    private final String info;

    ScAssetsAndLiabilitiesEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (ScAssetsAndLiabilitiesEnum value : ScAssetsAndLiabilitiesEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
